<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1" isErrorPage="true"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@page import="java.io.PrintWriter"%><html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
		<jsp:include page="templates/head_default.html" />
	</head>
	<body>
		<div style="width:796px;margin:0 auto;text-align:left;">
			<jsp:include page="templates/app_top.html" />
			<div style="padding:10px;background:#000;color:#FFF;margin-bottom:10px;font:15px Verdana;">
				<span style="font-weight:bold;">Ooooops!</span>	
			</div>

			<span style="font-weight:bold;">Erro</span>:

			<div style="border:solid 1px #c91212;background:#f5f5f5;color:#000;padding:10px;margin-bottom:15px;margin-top:5px;">
				<%= exception.getMessage() %>
			</div>

			<span style="font-weight:bold;">StackTrace</span>:

			<div style="border:solid 1px #c91212;background:#f5f5f5;color:#000;padding:10px;margin-bottom:15px;margin-top:5px;">
				<%  
					int i = 0;
					for(StackTraceElement stack: exception.getStackTrace()){
						StringBuilder sb = new StringBuilder();
						i++;
						sb.append( i < 10 ? ("0" + i) : i );
						sb.append( " : " );
						sb.append( stack.getClassName() );
						sb.append( " : " );
						sb.append( stack.getLineNumber() );
						sb.append( " : " );
						sb.append( stack.getMethodName() );
						sb.append( ";" );
						sb.append( "<br>" );
						out.println(sb);
					}
				%>
			</div>

		</div>
	</body>
</html>